import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('sys_role', {
  comment: '身份表',
})
export class RoleEntity {
  @PrimaryGeneratedColumn({ type: 'int', comment: '身份ID', name: 'role_id' })
  roleId: number;

  @Column({ type: 'varchar', comment: '身份名称-标识符', name: 'role_name' })
  roleName: string;

  @Column({ type: 'varchar', comment: '身份名称', name: 'role_title' })
  roleTitle: string;

  @Column({ type: 'varchar', comment: '身份描述', name: 'remark' })
  remark: string;
}
